package br.com.mmm.javacenter.framework.dao;

import java.util.ArrayList;
import java.util.List;

public class ListPagging<T> extends ArrayList<T>{
	private Integer totalRegistros;
	public ListPagging(List<T> list){
		super.addAll(list);
		totalRegistros = list.size();
	}
	public ListPagging(List list, Integer totalReg) {
		super.addAll(list);
		totalRegistros = totalReg;
	}
	public Integer getTotalRegistros() {
		return totalRegistros;
	}

	public void setTotalRegistros(Integer totalRegistros) {
		this.totalRegistros = totalRegistros;
	} 
}
